Skip to content

Updated certificate names in commands depending on the platform version#542

Open
stitenko wants to merge 1 commit into
thingsboard:mainfrom
stitenko:07.2026/Certificate-name-update-foe-claude
Open

Updated certificate names in commands depending on the platform version#542
stitenko wants to merge 1 commit into
thingsboard:mainfrom
stitenko:07.2026/Certificate-name-update-foe-claude

Conversation

@stitenko

@stitenko stitenko commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Description

Updated certificate names in commands depending on the platform version (CE, PE, Cloud, EU Cloud)

https://thingsboard.io/docs/paas/eu/reference/mqtt-api/getting-connected/

https://thingsboard.io/docs/paas/eu/reference/coap-api/getting-connected/

Type of change

  • New / updated documentation page (src/content/docs/**)
  • Shared include file (src/content/_includes/**)
  • Component, layout, or styling change (src/components/**, src/styles/**)
  • Landing / use-case / case-study page (src/pages/**, src/data/**)
  • Redirects (src/data/redirects.ts)
  • Version bump / release (see release skill)
  • Build, CI, scripts, or tooling
  • Other (please describe)

Affected products

Related issues

  • Closes #

Checklist

  • pnpm check passes (Astro / TypeScript)
  • pnpm lint:eslint passes
  • pnpm lint:slugcheck passes (required if pages were added/renamed/moved across languages)
  • pnpm lint:linkcheck passes locally — required to merge; run it before requesting review (use pnpm lint:linkcheck:nobuild if you already ran a build)
  • Renamed/removed pages have a redirect in src/data/redirects.ts, and pnpm generate:redirects was run
  • No hardcoded versions — values come from src/data/versions.ts
  • Screenshots attached for visual changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the MQTT and CoAP “getting connected” reference includes to show the correct CA root certificate filename for self-hosted (CE/PE) versus ThingsBoard Cloud (PaaS / EU PaaS) examples, by introducing a {CA_CERT} placeholder resolved by HostCode.

Changes:

  • Added product-conditional download instructions for the CA root certificate in MQTT and CoAP connection guides.
  • Replaced hardcoded ca-root.pem in example commands with a {CA_CERT} placeholder in MQTT/CoAP includes.
  • Extended HostCode to substitute {CA_CERT} as ca-root.pem (self-hosted) or tb-cloud-root-ca.pem (cloud).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/content/_includes/docs/reference/mqtt-api/getting-connected.mdx Uses {CA_CERT} in MQTT TLS examples and adds per-product download instructions.
src/content/_includes/docs/reference/coap-api/getting-connected.mdx Uses {CA_CERT} in DTLS examples and adds per-product download instructions.
src/components/HostCode.astro Adds {CA_CERT} placeholder substitution for self-hosted vs cloud host configs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<HostCode product={props.product} lang="bash" code={`coap-client-openssl -v 6 -m POST -R ca-root.pem -t "application/json" -e '{"temperature":25}' "coaps://{COAP_HOST}/api/v1/$ACCESS_TOKEN/telemetry"`} />
<ShowFor product={props.product} show={[Products.CE, Products.PE]}>

Download `ca-root.pem` from the **Entities** → **Devices** → **[device]** → **Check connectivity** → **CoAP** .

<ShowFor product={props.product} show={[Products.PAAS, Products.PAAS_EU]}>

Download `tb-cloud-root-ca.pem` from the **Entities** → **Devices** → **[device]** → **Check connectivity** → **CoAP** .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants